// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.service;

import com.geniusai.aip.auth.domain.EnvoyFilter;

import java.io.IOException;

/**
 * @author lp58607
 * @date 2021/11/8
 */
public interface EnvoyFilterService {
    /**
     * 创建一个EnvoyFilter
     *
     * @param envoyFilter
     * @param username
     * @throws IOException
     */
    void createEnvoyFilter(String username, EnvoyFilter envoyFilter) throws IOException;

    /**
     * 删除一个EnvoyFilter
     *
     * @param username namespace
     * @throws IOException
     */
    void deleteEnvoyFilter(String username) throws IOException;
}
